class CreateVotes < ActiveRecord::Migration
  def self.up
    create_table :votes do |t|
      t.integer :user_id, 	:null => false, :options => 'CONSTRAINT fk_votes_belong_user REFERENCES users(id)'
      t.integer :itinerary_id,	:null => false, :options => 'CONSTRAINT fk_votes_belong_iti REFERENCES itinerary(id)'

      t.timestamps
    end
  end

  def self.down
    drop_table :votes
  end
end
